package com.atguigu.jxc.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class GoodsTypeVo {
    private Integer id;
    private String text;
    private Integer pId;
    private String state = "closed";
    private String iconCls = "goods-type";
    private Attributes attributes;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<GoodsTypeVo> children = new ArrayList<>();

    @Data
    public static class Attributes{
        private Integer state = 1;
    }
}
